<php>
    if(ACTION_NAME=='information'){ $tabClass['user_data'] = 'active'; }
    elseif(ACTION_NAME=='fans'||ACTION_NAME=='following'){ $tabClass['user_fans'] = 'active'; }
    elseif(ACTION_NAME=='rankverify'||ACTION_NAME=='rank'||ACTION_NAME=='rankverifyfailure'||ACTION_NAME=='rankverifywait'){ $tabClass['user_rank'] = 'active'; }
    else{ $tabClass[$type] = 'active'; }
</php>

<nav class="navbar navbar-default uc_navbar" role="navigation">
    <!-- Collect the nav links, forms, and other content for toggling -->
    <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
        <ul class="nav navbar-nav">
        	<li><a href="{:U('appList',array('type'=>'weibo','uid'=>$uid))}"  class="{$tabClass['weibo']}"><if condition="is_login() && $user_info['uid'] eq is_login()">我的<else />他的</if>动态</a></li>
        	<li>|</li>
			<li><a href="{:U('appList',array('type'=>'group','uid'=>$uid))}"  class="{$tabClass['group']}"><if condition="is_login() && $user_info['uid'] eq is_login()">我的<else />他的</if>树从</a></li>
            <li>|</li>
            <li>
                <a href="{:U('following',array('uid'=>$uid))}" class="{$tabClass.user_fans}"><if condition="is_login() && $user_info['uid'] eq is_login()">我的<else />他的</if>树友</a>
            </li>
        </ul>
    </div>
    <!-- /.navbar-collapse -->
</nav>